package com.ie.service.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ie.common.http.ResponseResult;
import com.ie.entity.CartEntity;
import com.ie.entity.GoodsEntity;

import java.util.List;
import java.util.Map;

public interface GoodsService extends IService<GoodsEntity> {
    //后台商品操作
    ResponseResult<Map<String, Object>> getGoods(GoodsEntity goodsEntity);

    ResponseResult<Map<String, String>> add(GoodsEntity goodsEntity);

    ResponseResult<Map<String, String>> delete(GoodsEntity goodsEntity);
    //before端商品操作

    ResponseResult<List<GoodsEntity>> getAdvGoods();

    ResponseResult<List<GoodsEntity>> getGoodsIndex(GoodsEntity goodsEntity);

    ResponseResult<GoodsEntity> getGoodsById(GoodsEntity goodsEntity);

    ResponseResult<List<Map<String, Object>>> myCartGoods(CartEntity cartEntity);
    //TODO: 2020/12/15
    //ResponseResult<Map<String, Object>> iPageMyFocusGoods(GoodsEntity goodsEntity);

}
